home *** CD-ROM | disk | FTP | other *** search
/ Plug-In Power Pack for Netscape Communicator / Plug-In Power Pack for Netscape Communicator.iso / plugins / dataviews / dvtools / examples / windows / mfc_mdi / mfc_mdiview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-09  |  2.3 KB  |  81 lines

  1. // mfc_mdiView.h : interface of the CMfc_mdiView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #ifndef CMFC_MDIVIEW_H
  6. #define CMFC_MDIVIEW_H
  7.  
  8. // Standard DataViews header:
  9. #include "Tfundecl.h"        // T routines (screens, drawports & views)
  10. #include "VOfundecl.h"    // VO layer (VOloCreate, VOobDereference, etc.)
  11. #include "VUerfundecl.h"  // VUer: VUerHandleLocEvent
  12. #include "GRfundecl.h"      // GR routines (interface to display device)
  13.  
  14.  
  15. class CMfc_mdiView : public CView
  16. {
  17. protected: // create from serialization only
  18.     CMfc_mdiView();
  19.     DECLARE_DYNCREATE(CMfc_mdiView)
  20.  
  21. // Attributes
  22. public:
  23.     CMfc_mdiDoc* GetDocument();
  24.  
  25. // Operations
  26. public:
  27.     DRAWPORT GetDrawport() { return m_Dp; }
  28.     BOOL InitDv(VIEW dvView = 0);
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CMfc_mdiView)
  33.     public:
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CMfc_mdiView() {};
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.     UINT     m_TimerID; // ID returned by CWnd::SetTimer()
  47.     OBJECT   m_Scr;     // DataViews screen object
  48.   OBJECT   m_Loc;     // DataViews location object for handling user input
  49.     DRAWPORT m_Dp;      // DataViews DRAWPORT
  50.     FARPROC  m_DvProc;  // DataViews driver WinProc
  51.  
  52. // Generated message map functions
  53. protected:
  54.     void InstallTimer(UINT nTimeInterval = 100);
  55.   BOOL SetupLoc(const MSG* msg);
  56.   void DisplayObjectType(OBJECT Ob);
  57.  
  58.  
  59.     //{{AFX_MSG(CMfc_mdiView)
  60.     afx_msg void OnSize(UINT nType, int cx, int cy);
  61.     afx_msg void OnDestroy();
  62.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  63.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  64.     afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  65.     afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  66.     afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
  67.     afx_msg BOOL OnQueryNewPalette();
  68.     //}}AFX_MSG
  69.     DECLARE_MESSAGE_MAP()
  70. };
  71.  
  72. #ifndef _DEBUG  // debug version in mfc_mdiView.cpp
  73. inline CMfc_mdiDoc* CMfc_mdiView::GetDocument()
  74.    { return (CMfc_mdiDoc*)m_pDocument; }
  75. #endif
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.  
  79.  
  80. #endif
  81.